<?php
require_once("../connection/connect.php");
class package{
	private $package_id = '', $name = '', $info = '';
	function edit($package_id, $name, $info){
		$this->$package_id = $package_id;
		$this->$name = $name;
		$this->$info = $info;
		$sql = "UPDATE packages SET name = '$name', info = '$info' WHERE package_id = $package_id";
		$a = mysql_query($sql);
	}
	
	function delete($package_id){
	$this->$package_id = $package_id;
	$sql = "DELETE FROM packages WHERE package_id = $package_id";
	$a = mysql_query($sql);
	}
}
/*
$u = new user();
$u->edit('1','DEF','vanca_tb@yahoo.com','2','2');
echo "ok";
*/
?>
